<meta charset="utf-8">
   <script>
   $(function () {
	   $.formValidator.initConfig({
		   theme:'Default',mode:'AutoTip',formID:"myform",debug:true,submitOnce:true,onSuccess:function(){
				   edit();
			       return false;
			}});
   });
   function edit(){
	   var params = {};
	   params.userNmae = $.trim($('#userNmae').val());
     params.userAddress = $.trim($('#userAddress').val());
     params.userPhone = $.trim($('#userPhone').val());
	   params.id = $('#id').val();
	   Plugins.waitTips({title:'信息提示',content:'正在提交数据，请稍后...'});
	   $.post("{:U('Admin/IntegralOrders/handleLotteryOrders')}",params,function(data,textStatus){
			var json = WST.toJson(data);
			if(json.status=='1'){
				Plugins.setWaitTipsMsg({ content:'操作成功',timeout:1000,callback:function(){
					   location.href="{:U('Admin/IntegralOrders/lotteryIndex',array('orderStatus'=>$object.orderStatus))}";
				}});
			}else{
            Plugins.closeWindow();
            Plugins.Tips({title:'信息提示',icon:'error',content:'操作失败!',timeout:1000});
			}
		});
   }
   </script>
       <form name="myform" method="post" id="myform">
        <input type='hidden' id='id' value='{$object.orderId}'/>

        <table class="table table-hover table-striped table-bordered wst-form">
           <tr>
             <th width='120' align='right'>订单号：</th>
             <td>{$object['orderNo']}</td>
           </tr>
           <tr>
           <th width='120' align='right'>中奖码：</th>
             <td>{$object['winningCode']}</td>
           </tr>
           <tr>
             <th width='120' align='right'>收货人：</th>
             <td><input type="text" id="userName" style="width:350px;"></td>
           </tr>
           <tr>
             <th width='120' align='right'>地址：</th>
             <td><input type="text" id="userAddress"  style="width:350px;"></td>
           </tr>
           <tr>
             <th width='120' align='right'>联系方式：</th>
             <td><input type="text" id="userPhone"  style="width:350px;"></td>
           </tr> 
           <tr>
             <td colspan='2' style='padding-left:250px;'>
                 <button type="submit" class="btn btn-success">确&nbsp;定</button>
                 <button type="button" class="btn btn-primary" data-dismiss="modal">返&nbsp;回</button>
             </td>
           </tr>
        </table>
       </form>